package tests;

import static org.junit.Assert.*;

import org.junit.Test;

import src.InfixFullParantEx;

public class InfixFullParantExTest {
	
	@Test
	public void testInfixFullParantExConstructor(){
		new InfixFullParantEx();
	}
	
	@Test
	public void testInfixFullParantEx(){
		String s1 = InfixFullParantEx.evaluateInfix("{1 + 2}");
		assertEquals(s1, "3");
		
		String s2 = InfixFullParantEx.evaluateInfix("(1 * 3)");
		assertEquals(s2, "3");
		
		String s3 = InfixFullParantEx.evaluateInfix("{4 / 2}");
		assertEquals(s3, "2");
		
		String s4 = InfixFullParantEx.evaluateInfix("(5 - 2)");
		assertEquals(s4, "3");
		
		InfixFullParantEx.evaluateInfix("(5 g 2)");
	}

}
